package cloud.example.eureka_consumer.remote;

import cloud.example.eureka_consumer.hystrix.HelloRemoteHystrix;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "eureka-client", fallback = HelloRemoteHystrix.class)
public interface HelloRemote {
  @RequestMapping(value = "/test/hello", method = RequestMethod.GET)
  String hello(@RequestParam(value = "name") String name);

  @RequestMapping(value = "/test/dc", method = RequestMethod.GET)
  String dc();
}
